namespace mplat {

    export class WxUiInterface extends BaseUiInterface {

        showModal(title: IShowModalInfo) {
            if (wx['showModal']) {
                wx.showModal(title)
            }
        }

        showLoading(title: string, mask?: boolean): void {
            wx.showLoading({ title, mask })
        }
        hideLoading(): void {
            wx.hideLoading({})
        }
        showToast(obj:_showToastObject): void {
            wx['showToast'](obj)
        }
        hideToast(): void {
            wx['hideToast']({});
        }
    }
}